#include "LinkTcpClient.h"
#include <iostream>

using namespace controller;

void test_LinkTcpClient(void)
{
    LinkTcpClient l;
    std::map<std::string, std::string> arg = {
        //{"url", "127.0.0.1"},
        //{"url","192.168.120.98"},
        {"url", "192.168.2.103"},
        {"port", "60000"},
        //{"reconnect", "false"},
    };
    l.open(arg);

    while (1)
    {
        if (l.is_open())
        {
            l.write((char *)"kaihua.yang", 11);
        }
        sleep(1);
    }

    // ww("OK");
}